package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BarcodeInterfaceConfigMapper;
import com.ruoyi.system.domain.BarcodeInterfaceConfig;
import com.ruoyi.system.service.IBarcodeInterfaceConfigService;

/**
 * 条码接口配置Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-27
 */
@Service
public class BarcodeInterfaceConfigServiceImpl implements IBarcodeInterfaceConfigService 
{
    @Autowired
    private BarcodeInterfaceConfigMapper barcodeInterfaceConfigMapper;

    /**
     * 查询条码接口配置
     * 
     * @param id 条码接口配置主键
     * @return 条码接口配置
     */
    @Override
    public BarcodeInterfaceConfig selectBarcodeInterfaceConfigById(Long id)
    {
        return barcodeInterfaceConfigMapper.selectBarcodeInterfaceConfigById(id);
    }

    /**
     * 查询条码接口配置列表
     * 
     * @param barcodeInterfaceConfig 条码接口配置
     * @return 条码接口配置
     */
    @Override
    public List<BarcodeInterfaceConfig> selectBarcodeInterfaceConfigList(BarcodeInterfaceConfig barcodeInterfaceConfig)
    {
        return barcodeInterfaceConfigMapper.selectBarcodeInterfaceConfigList(barcodeInterfaceConfig);
    }

    /**
     * 新增条码接口配置
     * 
     * @param barcodeInterfaceConfig 条码接口配置
     * @return 结果
     */
    @Override
    public int insertBarcodeInterfaceConfig(BarcodeInterfaceConfig barcodeInterfaceConfig)
    {
        return barcodeInterfaceConfigMapper.insertBarcodeInterfaceConfig(barcodeInterfaceConfig);
    }

    /**
     * 修改条码接口配置
     * 
     * @param barcodeInterfaceConfig 条码接口配置
     * @return 结果
     */
    @Override
    public int updateBarcodeInterfaceConfig(BarcodeInterfaceConfig barcodeInterfaceConfig)
    {
        return barcodeInterfaceConfigMapper.updateBarcodeInterfaceConfig(barcodeInterfaceConfig);
    }

    /**
     * 批量删除条码接口配置
     * 
     * @param ids 需要删除的条码接口配置主键
     * @return 结果
     */
    @Override
    public int deleteBarcodeInterfaceConfigByIds(Long[] ids)
    {
        return barcodeInterfaceConfigMapper.deleteBarcodeInterfaceConfigByIds(ids);
    }

    /**
     * 删除条码接口配置信息
     * 
     * @param id 条码接口配置主键
     * @return 结果
     */
    @Override
    public int deleteBarcodeInterfaceConfigById(Long id)
    {
        return barcodeInterfaceConfigMapper.deleteBarcodeInterfaceConfigById(id);
    }
}
